CHCP 65001
@echo off
REM 本文件为UTF-8编码
REM git-push.bat

title GIT提交
color 5e

echo 开始提交代码到本地仓库
echo 当前目录是：%cd%

echo ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
echo 开始添加变更
echo ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
git add -A .
echo 执行结束！
echo ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

echo;
echo 提交变更到本地仓库
echo ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
set /p declation=输入本次修改说明:
git commit -m "%declation%"
echo ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

echo;
echo 将变更情况提交到远程git服务器
echo ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
echo git push origin master
git push -u origin master -f
echo ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

echo;
echo 批处理执行完毕！
echo;

pause